package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishItemVO;
import com.sky.vo.DishVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: DishService
 * Package: IntelliJ IDEA
 *
 * @author 张文豪
 * @description
 * @date 2023/8/16 13:02
 */
@Service
public interface DishService {
    void save(DishDTO dishDTO);

    DishDTO selectId(Long id);

    List<Dish> selectCategory(Long categoryId);

    PageResult pageQueryDish(DishPageQueryDTO dishPageQueryDTO);

    void isSell(int status,long id);

    void updateDish(DishDTO dishDTO);

    void deleteByIds(List<Long> ids);

    List<DishVO> selectById(Long categoryId);

    List<DishItemVO> selectBySetmeal(Long id);

    List<DishItemVO> selectByIds(List<Long> list);
}
